#-------------------------------------------------
#
# Project created by QtCreator 2019-05-16T19:13:24
#
#-------------------------------------------------

QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = OBD_Report_Qt
TEMPLATE = app

LIBS += -lpthread

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

INCLUDEPATH += UTC/GpsUtcAndLocalTime/GpsUtcAndLocalTime
#INCLUDEPATH += Encrypt
INCLUDEPATH += $$PWD/RSA
INCLUDEPATH += $$PWD/cJSON
#INCLUDEPATH += mysql
INCLUDEPATH += $$PWD/lib
SOURCES += \
#        Encrypt/desc.c \
#        Encrypt/ied.c \
#        Encrypt/md5c.c \
#        Encrypt/nn.c \
#        Encrypt/prime.c \
#        Encrypt/r_keygen.c \
#        Encrypt/r_random.c \
#        Encrypt/r_stdlib.c \
#        Encrypt/rsa.c \
    Qt/multithread.cpp \
    Qt/obdii_4g.cpp \
        Qt/socketclient.cpp \
    Qt/socketthread.cpp \
    Qt/socketviewer.cpp \
    Qt/viewerthread.cpp \
        Qt/workthread.cpp \
        RSA/bignum.c \
        RSA/prime.c \
        RSA/rsa.c \
        UTC/GpsUtcAndLocalTime/GpsUtcAndLocalTime/DateTime.c \
        UTC_Test.c \
        agreement/agreement.c \
    agreement/agreement_client.c \
        agreement/agreement_server.c \
        agreement/agreement_test.c \
    agreement/carinfo.c \
    agreement/checksum.c \
        agreement/encrypt.c \
        agreement/encrypt_test.c \
        agreement/obd_shanghai.c \
        agreement/storage_pack.c \
    agreement/upload.c \
        cJSON/cJSON.c \
        cJSON/mem_malloc.c \
    dialogcfg.cpp \
    dialogdevice.cpp \
    json/configure.c \
    json/vin_list.c \
    json_list.c \
    lib/data_base.c \
    lib/fw.c \
    lib/sql.c \
        main.cpp \
        mainwindow.cpp \
    msg_relay.c \
    service.c \
        test.c \
    thread_list.c \
    thread_pool.c \
    trunking.c \
    viewwindow.cpp

HEADERS += \
        Encrypt/des.h \
        Encrypt/global.h \
        Encrypt/ied.h \
        Encrypt/md2.h \
        Encrypt/md4.h \
        Encrypt/md5.h \
        Encrypt/nn.h \
        Encrypt/prime.h \
        Encrypt/r_random.h \
        Encrypt/rsa.h \
        Encrypt/rsa_incl.h \
        Encrypt/rsaeuro.h \
        Encrypt/rsaref.h \
        Encrypt/shs.h \
        Qt/multithread.h \
        Qt/obdii_4g.h \
        Qt/socketclient.h \
        Qt/socketthread.h \
        Qt/socketviewer.h \
        Qt/viewerthread.h \
        Qt/workthread.h \
        RSA/bignum.h \
        RSA/keys.h \
        RSA/prime.h \
        RSA/rsa.h \
        UTC/GpsUtcAndLocalTime/GpsUtcAndLocalTime/DateTime.h \
        agreement/agreement.h \
        agreement/carinfo.h \
        agreement/encrypt.h \
        agreement/obd_shanghai.h \
        agreement/storage_pack.h \
        agreement/upload.h \
        cJSON/cJSON.h \
        cJSON/mem_malloc.h \
        dialogcfg.h \
        dialogdevice.h \
        json_list.h \
        lib/data_base.h \
        lib/fw.h \
        lib/sql.h \
        list.h \
        mainwindow.h \
        msg_relay.h \
        mysql/MySql.h \
        mysql/include/decimal.h \
        mysql/include/errmsg.h \
        mysql/include/keycache.h \
        mysql/include/m_ctype.h \
        mysql/include/m_string.h \
        mysql/include/my_alloc.h \
        mysql/include/my_attribute.h \
        mysql/include/my_compiler.h \
        mysql/include/my_config.h \
        mysql/include/my_dbug.h \
        mysql/include/my_dir.h \
        mysql/include/my_getopt.h \
        mysql/include/my_global.h \
        mysql/include/my_list.h \
        mysql/include/my_net.h \
        mysql/include/my_pthread.h \
        mysql/include/my_sys.h \
        mysql/include/my_xml.h \
        mysql/include/mysql.h \
        mysql/include/mysql/client_plugin.h \
        mysql/include/mysql/innodb_priv.h \
        mysql/include/mysql/plugin.h \
        mysql/include/mysql/plugin_audit.h \
        mysql/include/mysql/plugin_auth.h \
        mysql/include/mysql/plugin_auth_common.h \
        mysql/include/mysql/plugin_ftparser.h \
        mysql/include/mysql/psi/mysql_file.h \
        mysql/include/mysql/psi/mysql_thread.h \
        mysql/include/mysql/psi/psi.h \
        mysql/include/mysql/psi/psi_abi_v1.h \
        mysql/include/mysql/psi/psi_abi_v2.h \
        mysql/include/mysql/service_my_snprintf.h \
        mysql/include/mysql/service_thd_alloc.h \
        mysql/include/mysql/service_thd_wait.h \
        mysql/include/mysql/service_thread_scheduler.h \
        mysql/include/mysql/services.h \
        mysql/include/mysql/thread_pool_priv.h \
        mysql/include/mysql_com.h \
        mysql/include/mysql_embed.h \
        mysql/include/mysql_time.h \
        mysql/include/mysql_version.h \
        mysql/include/mysqld_ername.h \
        mysql/include/mysqld_error.h \
        mysql/include/plugin.h \
        mysql/include/plugin_audit.h \
        mysql/include/plugin_ftparser.h \
        mysql/include/sql_common.h \
        mysql/include/sql_state.h \
        mysql/include/sslopt-case.h \
        mysql/include/sslopt-longopts.h \
        mysql/include/sslopt-vars.h \
        mysql/include/typelib.h \
        thread_list.h \
        thread_pool.h \
        trunking.h \
        viewwindow.h

FORMS += \
        dialogcfg.ui \
        dialogdevice.ui \
        mainwindow.ui \
        viewwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

unix|win32: LIBS += -L$$PWD/lib/mysql-connector-c-6.1.11-winx64/lib/ -llibmysql

INCLUDEPATH += $$PWD/lib/mysql-connector-c-6.1.11-winx64/include
DEPENDPATH += $$PWD/lib/mysql-connector-c-6.1.11-winx64/include
